package com.ttc.ssm.mapper.admin;

import com.ttc.ssm.common.CompanyPage;
import com.ttc.ssm.common.Page;
import com.ttc.ssm.po.Company;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Created by Jiarui on 2016/7/25.
 */
public interface CompanyMapper {
    List<Company> selectCompanyForPage(CompanyPage page);
    List<Company> selectVerifyForPage(CompanyPage page);
    void deleteCompanies(Map<String,Object> map) throws Exception;
    void updateCompanyStatus(int company_id,int status,String date) throws Exception;
    Company selectCompanyById(int company_id) throws Exception;
    void updateCompany(Company company) throws Exception;
    int countRows(CompanyPage companyPage) throws Exception;
    int countRowsVerify(CompanyPage companyPage) throws Exception;
    int countCompany() throws Exception;
    int countCompanyByMonth(Date month_start,Date month_end) throws Exception;
}
